package team.zero.lemon.module.message.dao;

import org.apache.ibatis.annotations.Param;
import team.zero.lemon.common.persistence.ICrudDao;
import team.zero.lemon.common.persistence.Page;
import team.zero.lemon.common.persistence.annotation.MyBatisDao;
import team.zero.lemon.module.message.entity.Message;
import team.zero.lemon.module.message.entity.MessageAction;
import java.util.List;

@MyBatisDao
public interface IMessageActionDao extends ICrudDao<MessageAction> {
    public List<MessageAction> getMessageActionByMessageId(@Param("messageId") Integer messageId);

    public List<MessageAction> getReceivingPage(MessageAction messageAction);

    public List<MessageAction> getSendingPage(MessageAction messageAction);

    public List<MessageAction> getGarbagingPage(MessageAction messageAction);

    public  int deleteAction(MessageAction messageAction);

    public  int update(MessageAction messageAction);
}